import request from '@/utils/request'
// -------- 充值金额  --------
let BASE_ADDRESS = '/market/depositPresent'
// 分页查询

export const getDepositPresentListApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}


// 修改
export const getDepositPresentEditApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: 'put',
        data
    })
}
// 删除
export const getDepositPresentStatusApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove/${data}`,
        method: 'delete',

    })
}

//id查询
export const getDepositPresentGetInfoApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: 'get',
        params: data
    })
}


//添加
export const getDepositPresentAddApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: 'post',
        data
    })
}

